<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03-ElementUI入门案例</title>
    <!--Vue必须放上面-->
    <script src="../js/vue.js"></script>
    <!--ElementUi-->
    <script src="../element-ui/lib/index.js"></script>
    <link rel="stylesheet" href="../element-ui/lib/theme-chalk/index.css">
</head>
<body>
    <div id="app">
        <el-button type="primary" icon="el-icon-plus" @click="fun()">登录</el-button>
        <el-dialog :visible.sync="flag">
            <h1>
                Hello,ElementUI
            </h1>
        </el-dialog>
    </div>
    <script>
        const vm = new Vue({
            el:"#app",
            data:{
                flag:false,
            },
            methods:{
                fun:function () {
                    this.flag = true;
                }
            }
        });
    </script>
</body>
</html>